package com.pingan.pastry.dao;

import com.pingan.pastry.entity.Scene;
import com.pingan.pastry.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserDAO {

    /**
     * @param
     * @param password
     * @return
     * @note 用户查询接口
     */
    User selectUser(@Param("email") String email, @Param("password") String password);

    /**
     * 批量插入用户信息
     *
     * @param userList
     * @return
     */
    Integer insertBatchUsers(@Param("userList") List<User> userList);

    /**
     * 查找用户信息
     * @param id
     * @return
     */
    List<Scene> selectScene(@Param("id") Integer id);


    User select1();

}
